import http from '../utils/request'
// 获取经纪人列表
const getBrokerList = function(data){
    return http.get('/api/broker/list',data)
};
// 删除
const delBroker = function(data) {
    return http.post('/api/del/broker',data)
}
// 修改经纪人状态
const brokerChange = function(data) {
    return http.post('/api/broker/change',data)
}
// 新增经纪人
const addBroker = function(data) {
    return http.post('/api/add/broker',data)
}
// 编辑经纪人
const editBroker = function(data) {
    return http.post('/api/edit/broker',data)
}

const districtsApi = {
    getBrokerList,
    delBroker,
    brokerChange,
    addBroker,
    editBroker
}

export default districtsApi